// jsonp 示例
$(document).ready(function() {
	
	 $("#b1").click(function(){ 
         $.ajax({ 
            url:'http://192.168.1.101:8080/bshop/sms/send', 
            type: "POST",
			data:{loginAccount:'ass',code:'aa'},
			xhrFields: {
				withCredentials: true
			},
			crossDomain: true,
            async: false, 
            dataType: "json", 
            jsonp: "callback", //服务端用于接收callback调用的function名的参数(请使用callback或jsonp)
            jsonpCallback: "fun_jsonpCallback", //callback的function名称
            success: function(json) { 
                alert(json); 
            },
            error: function(){
                alert('Request Error');
            } 
        }); 
    });     
	
	 $("#b2").click(function(){ 
         $.ajax({ 
            url:'http://192.168.1.101:8080/bshop/logistics/freighttemplate/update',
            type: "POST",
			data:{loginAccount:'ass',code:'aa'},
			xhrFields: {
				withCredentials: true
			},
			crossDomain: true,
            async: false, 
            dataType: "json", 
            jsonp: "callback", //服务端用于接收callback调用的function名的参数(请使用callback或jsonp)
            jsonpCallback: "fun_jsonpCallback", //callback的function名称
            success: function(json) {
                alert("ahhaa  http://222.46.20.201:8181/bshop/company/business/update");
                alert(json);
            },
            error: function(){
                alert('Request Error');
            } 
        }); 
    });     

});
